<!--
 * @Author: chenzechao
 * @Date: 2024-01-27 17:39:49
 * @LastEditors: chenzechao
 * @LastEditTime: 2024-02-05 16:53:12
 * @FilePath: \accesscontrolui\src\views\xtpz\holiday\components\search.vue
 * @Description: 
-->
<template>
  <el-form  :model="searchForm" ref="ruleForm">
    <el-form-item label="节假日名称" prop="name">
      <el-input placeholder="请输入" v-model="searchForm.name" ></el-input>
    </el-form-item>
    <el-form-item style="float: right;">
      <el-button size="small" type="primary" icon="el-icon-search" @click="search">{{
        this.i18n.t("Query")
      }}</el-button>
      <el-button size="small" type="handle" icon="el-icon-refresh-left" @click="reset">{{
        this.i18n.t("Reset")
      }}</el-button>
    </el-form-item>
  </el-form>
</template>
<script>
export default {
  data() {
    return {
      searchForm: {
        name: "",
      },
    };
  },
  methods:{
    search(){
     this.$emit('on-search',this.searchForm) 
    },
    reset(){
      this.$refs.ruleForm.resetFields();
    }
  }
};
</script>
